﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using COFE.Core;

namespace COFE.Core.Profile
{
    public class NoVolumeManager : VolumeManager
    {
        #region Constructor

        public NoVolumeManager(IUserProfile userProfile)
            : base(userProfile)
        {

        }

        #endregion

        #region Methods

        #endregion

        #region Data

        #endregion

        #region Public Properties

        //public override IDirectoryInfo[] RootDirectories { 
        //    get {

        //        List<IDirectoryInfo> retVal = new List<IDirectoryInfo>();
        //        foreach (IVolume v in COFEShared.VolumeRegistrar.Volumes.Values)
        //        {
        //            if (v.DirectoryLister is Lister.IPrimaryDirectoryLister)
        //                retVal.AddRange((v.DirectoryLister as Lister.IPrimaryDirectoryLister).RootDirectories);
        //        }

        //        return retVal.ToArray();            
        //    } }
        //public override Dictionary<IVolume, VolumeAccessMode> PrimaryVolumes
        //{
        //    get
        //    {
        //        return (from v in COFEShared.VolumeRegistrar.Volumes.Values
        //                where v.DirectoryLister is Lister.IPrimaryDirectoryLister
        //                select v).ToDictionary((v) => v, (v) => VolumeAccessMode.All);
        //    }
        //}
        //public override List<IVolume> SecondaryVolumes { 
        //    get {
        //        return (from v in COFEShared.VolumeRegistrar.Volumes.Values
        //                where v.DirectoryLister is Lister.ISecondaryDirectoryLister
        //                select v).ToList();
        //    }
        //}

        
        #endregion
        
    }
}
